
function setUrl(url) {
	document.getElementById("urlField").value = url;
	document.getElementById("loadButton").click();
}

chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {

	setUrl(request.recipeUrl);

	sendResponse({}); 
});